package com.ruoyi.yuce.service.impl;

import java.util.List;

import com.ruoyi.yuce.domain.pojo.CoBuJian;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yuce.mapper.NibianqiMapper;
import com.ruoyi.yuce.domain.Nibianqi;
import com.ruoyi.yuce.service.INibianqiService;

/**
 * 逆变器Service业务层处理
 *
 * @author ruoyi
 * @date 2023-01-17
 */
@Service
public class NibianqiServiceImpl implements INibianqiService
{
    @Autowired
    private NibianqiMapper nibianqiMapper;

    /**
     * 查询逆变器
     *
     * @param id 逆变器主键
     * @return 逆变器
     */
    @Override
    public Nibianqi selectNibianqiById(Integer id)
    {
        return nibianqiMapper.selectNibianqiById(id);
    }

    /**
     * 查询逆变器列表
     *
     * @param nibianqi 逆变器
     * @return 逆变器
     */
    @Override
    public List<Nibianqi> selectNibianqiList(Nibianqi nibianqi)
    {
        return nibianqiMapper.selectNibianqiList(nibianqi);
    }

    /**
     * 新增逆变器
     *
     * @param nibianqi 逆变器
     * @return 结果
     */
    @Override
    public int insertNibianqi(Nibianqi nibianqi)
    {
        return nibianqiMapper.insertNibianqi(nibianqi);
    }

    /**
     * 修改逆变器
     *
     * @param nibianqi 逆变器
     * @return 结果
     */
    @Override
    public int updateNibianqi(Nibianqi nibianqi)
    {
        return nibianqiMapper.updateNibianqi(nibianqi);
    }

    /**
     * 批量删除逆变器
     *
     * @param ids 需要删除的逆变器主键
     * @return 结果
     */
    @Override
    public int deleteNibianqiByIds(Integer[] ids)
    {
        return nibianqiMapper.deleteNibianqiByIds(ids);
    }

    /**
     * 删除逆变器信息
     *
     * @param id 逆变器主键
     * @return 结果
     */
    @Override
    public int deleteNibianqiById(Integer id)
    {
        return nibianqiMapper.deleteNibianqiById(id);
    }

    @Override
    public List<CoBuJian> getBuJian() {
        return nibianqiMapper.getBuJianName();
    }
}
